using System;
using System.Collections.Generic;
using System.Text;
using Emlyn.Common.Tools.BusinessLayer;

namespace Emlyn.Website.Users
{
    public class EWebsiteMod: BaseMod<EWebsite, string, EWebsiteDataLayer>
    {
        public EWebsiteMod()
            : base(new EWebsiteDataLayer())
        {
        }

        //public void AddUserWebsiteRelationship(User aUser, EWebsite aWebsite)
        //{
        //    if (aUser.IsNew)
        //    {
        //        (new UserMod()).Save(aUser);
        //    }

        //    if (aWebsite.IsNew)
        //    {
        //        Save(aWebsite);
        //    }

        //    _dl.AddWebsiteUserRelationship(aWebsite.WebsiteCode, aUser.UserID);
        //}

        //public void DeleteUserWebsiteRelationship(User aUser, EWebsite aWebsite)
        //{
        //    if (!aUser.IsNew && !aWebsite.IsNew)
        //    {
        //        _dl.DeleteWebsiteUserRelationship(aWebsite.WebsiteCode, aUser.UserID);
        //    }
        //}
    }
}
